package fy.mdm.bean;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public class MaterialCodeChangeBean {
	private String oldMaterielCode;// 物料原编码
	private List<String> newMaterielCode;// 物料新编码
	private List<String> newMaterielDescribe;// 物料新描述
	private List<String> newMaterielDescribeEn;// 物料新描述英文
	private List<String> newMeasurement;// 物料新单位
	private List<String> changeType;//类型
	private List<String> changeReasion;//理由
	private List<String> remark;// 备注
	private List<String> oldMeasurement;// 物料旧单位
	private List<String> newModel;//新型号
	private List<String> newBrand;//新品牌
	private List<String> oldmain;//旧属性
	private List<String> newmain;//新属性
	private long summaryId;
	private String billname;
	private String applier;
	private String ts;
	
	private String message;//查询结果
	private String status;//结果状态
	
	private List<String> oldcodeList;//物料原编码重复
	
	
	
//	public List<String> getNewModel() {
//		return newModel;
//	}
//
//	public void setNewModel(List<String> newModel) {
//		this.newModel = newModel;
//	}
//
//	public List<String> getNewBrand() {
//		return newBrand;
//	}
//
//	public void setNewBrand(List<String> newBrand) {
//		this.newBrand = newBrand;
//	}

	public List<String> getOldcodeList() {
		return oldcodeList;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setOldcodeList(List<String> oldcodeList) {
		this.oldcodeList = oldcodeList;
	}

	public String getOldMaterielCode() {
		return oldMaterielCode;
	}

	public void setOldMaterielCode(String oldMaterielCode) {
		this.oldMaterielCode = oldMaterielCode;
	}







	public List<String> getNewModel() {
		return newModel;
	}

	public void setNewModel(List<String> newModel) {
		this.newModel = newModel;
	}

	public List<String> getNewBrand() {
		return newBrand;
	}

	public void setNewBrand(List<String> newBrand) {
		this.newBrand = newBrand;
	}

	public List<String> getNewMeasurement() {
		return newMeasurement;
	}

	public void setNewMeasurement(List<String> newMeasurement) {
		this.newMeasurement = newMeasurement;
	}

	public long getSummaryId() {
		return summaryId;
	}

	public void setSummaryId(long summaryId) {
		this.summaryId = summaryId;
	}

	public String getBillname() {
		return billname;
	}

	public void setBillname(String billname) {
		this.billname = billname;
	}

	public String getApplier() {
		return applier;
	}

	public void setApplier(String applier) {
		this.applier = applier;
	}

	public String getTs() {
		return ts;
	}

	public void setTs(String ts) {
		this.ts = ts;
	}

	public List<String> getNewMaterielCode() {
		return newMaterielCode;
	}

	public void setNewMaterielCode(List<String> newMaterielCode) {
		this.newMaterielCode = newMaterielCode;
	}

	public List<String> getNewMaterielDescribe() {
		return newMaterielDescribe;
	}

	public void setNewMaterielDescribe(List<String> newMaterielDescribe) {
		this.newMaterielDescribe = newMaterielDescribe;
	}

	public List<String> getNewMaterielDescribeEn() {
		return newMaterielDescribeEn;
	}

	public void setNewMaterielDescribeEn(List<String> newMaterielDescribeEn) {
		this.newMaterielDescribeEn = newMaterielDescribeEn;
	}

	public List<String> getChangeType() {
		return changeType;
	}

	public void setChangeType(List<String> changeType) {
		this.changeType = changeType;
	}

	public List<String> getChangeReasion() {
		return changeReasion;
	}

	public void setChangeReasion(List<String> changeReasion) {
		this.changeReasion = changeReasion;
	}

	public List<String> getRemark() {
		return remark;
	}

	public void setRemark(List<String> remark) {
		this.remark = remark;
	}

	public List<String> getOldMeasurement() {
		return oldMeasurement;
	}

	public void setOldMeasurement(List<String> oldMeasurement) {
		this.oldMeasurement = oldMeasurement;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
	public List<String> getOldmain() {
		return oldmain;
	}

	public void setOldmain(List<String> oldmain) {
		this.oldmain = oldmain;
	}

	public List<String> getNewmain() {
		return newmain;
	}

	public void setNewmain(List<String> newmain) {
		this.newmain = newmain;
	}

	public String getID() {
		return new StringBuilder().append("oldMaterielCode").append(oldMaterielCode)
				.toString();
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("MDM_STATUS", status);
		jo.put("MDM_MESSAGE", message);		
		return jo;
	}

}
